<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Title</title>
</head>
<link href="../css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="../css/bootstrap-table.min.css">

<script src="../js/jquery-3.3.1.js"></script>
<script src="../js/bootstrap.bundle.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/xiaowenbo/selectByPrimaryKeyfhrk.js"></script>

<style>
    body
    {
        background-color: #f5f3e9;
    }

    #back
    {
        background-color: white;
        width: 800px;
        height: 500px;
        border: solid 1px black;
        box-shadow: 8px 8px 5px -4px rgb(0,0,0);
    }

    .input
    {
        border-bottom: 1px solid black;
        border-top:0px;
        border-left:0px;
        border-right:0px;
        outline: none;
    }

    .a
    {
        border-bottom:0px;
        border-top:0px;
        border-left:0px;
        border-right:0px;
        outline: none;
    }
</style>
<style>
    body {
        background-color: #d1ecf1;
    }
</style>
</head>
<body>
<DIV class="row" style="margin-top: 10px;margin-left: 20px;">
    <DIV class="col text-left">
        <span style="color: #0c84ff;">安全库存配置单复核(1)-制定安全库存配置单复核(2)</span>
    </DIV>
</DIV>
<hr>
<form method="post">
    <div>
        <div class="row">
            <div class="col">
                <caption>
                    <div style="margin-left: 880px" id="a">
                        <input type="button" class="btn btn-outline-primary" onclick="xqcx()" value="添加产品">
                        <input type="button" class="btn btn-outline-dark" onclick="del()" VALUE="删除产品">
                        <input type="button" class="btn btn-outline-primary" onclick="yl()" value="预览">
                    </div>
                </caption>
                <caption>
                    <div style="margin-left: 1010px;display: none" id="b" >
                        <input type="button" class="btn btn-outline-primary" onclick="qd()" value="确定">
                        <input type="button" class="btn btn-outline-dark" onclick="fh()" VALUE="返回">
                    </div>
                </caption>
                <input type="hidden" name="id" value="${dfile.id}">
                <input type="hidden" name="type" value="${dfile.type}">
                <div   id="back"  class="container">
                    <div class="text-center">
                        <h4 style="margin-top: 20px">入库申请</h4>
                    </div>

                    <div class="form-group">
                        <div class="row">
                            <div style="margin-top: 20px" class="col">
                                <span style="margin-left: 100px">入 库 理 由 :&nbsp&nbsp</span><select id="reason">
                                <option value="库存初始">库存初始</option>
                            </select>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="row">
                            <div class="col">
                                <table  style="margin-top: 30px;text-align: center" id="demoer" class="container" border="1" width="750px">
                                    <tr style="background-color: #b3d2f2">
                                        <td>点选</td>
                                        <td>产品名称</td>
                                        <td>产品编号</td>
                                        <td>描述</td>
                                        <td>数量</td>
                                        <td>单位</td>
                                        <td>成本单价（元）</td>
                                        <td> 小计（元） </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="row">
                            <div class="col">
                                <span style="margin-left: 50px">总件数:&nbsp&nbsp</span><input id="zjs" class="input"  type="text" name="amountsum" readonly/>
                                <span style="margin-left: 65px">总金额:&nbsp&nbsp</span><input id="zje" class="input"  type="text" name="costpricesum" readonly/>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-top: 20px" class="col">
                            <span style="margin-left: 100px">入 库 人:&nbsp&nbsp</span><input class="input" type="text" id="storer" value="${name}"/>
                            <span style="margin-left: 80px">入 库 时 间:&nbsp&nbsp</span><span id="date" ></span>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-top: 70px" class="col">
                            <span style="margin-left: 75px;vertical-align: middle;margin-top: 40px">备 注:</span>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-bottom: 50px;margin-left: 180px;transform:translateY(-60%)" class="col">
                            <textarea style="width: 550px;height: 100px" id="remark"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<div class="modal fade" id="myaddModal">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 700px">


            <!-- 模态框主体 -->
            <div class="modal-body">
                <form id="addform" method="post">
                    <table id="tabscx">


                    </table>
                </form>
            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
</body>
</html>

<script>
    function xqcx() {
        $("#myaddModal").modal("show")
    }
    function fh() {
        location.href="rkr"
    }


    function showTime() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;  //因为month属性从0开始所以加1
        var day = date.getDate();   // 日


        var hour = date.getHours();
        var minute = date.getMinutes();
        var second = date.getSeconds();
        second = second < 10 ? "0" + second : second;
        var current = year + "-" + month + "-" + day + " "+ " " + hour + ":" + minute + ":" + second;
        document.getElementById("date").innerHTML = current;
    }

    setInterval("showTime()", 1000);//每隔1000毫秒（即1秒）显示一次当前时间
</script>
